<script setup lang="ts">
import Authorization from '@utils/authorization'

const route = useRoute()
const router = useRouter()
let routeQuery = {
  token: ''
}
onMounted(() => {
  routeQuery = route.query as any
  console.log(routeQuery)
  Authorization.removeToken()
  Authorization.setToken(routeQuery.token)
  nextTick(() => {
    router.replace({ name: 'Login' })
  })
})
</script>

<template>
  <div />
</template>

<style scoped lang="scss">

</style>
